import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            redirect: '/homePage'
        },
        {
            path: '/homePage',
            component: () =>
                import ('../pages/homePage/homePage.vue'),
            meta: { title: '主页' },
            children: [
                // {
                //     path: '/menuManage',
                //     component: () =>
                //         import ('../pages/systemManage/menuManage/menuManage.vue'),
                //     meta: { title: '菜单管理' }
                // },

            ],
        },

        // {
        //     path: '/logRecord',
        //     component: () =>
        //         import ('../components/home/home.vue'),
        //     meta: { title: '工作记录' },
        //     children: [{
        //         path: '/logRecord',
        //         component: () =>
        //             import ('../pages/logManage/logRecord/logRecord.vue'),
        //         meta: { title: '工作记录' }
        //     }],
        // },

        {
            path: '/login',
            component: () =>
                import ('../pages/login/login.vue'),
            meta: { title: '登录' },
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
})